<template>
  <div class="info-card">
    <div class="info-card-title">{{ title }}</div>
    <div class="info-card-body">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
import {defineComponent} from 'vue'

export default defineComponent({
  name: "infoCard",
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  setup() {
    return {}
  }
})
</script>

<style scoped lang="scss">
  .info-card {
    border: dashed 1px #dcdfe6;
    width: 100%;
    border-radius: 4px;
    .info-card-title,
    .info-card-body {
      box-sizing: border-box;
    }
    .info-card-title {
      padding: 10px 20px;
      background-color: #f7f8fa;
    }
    .info-card-body {
      padding: 20px;
      box-sizing: border-box;
    }
  }
</style>